package com.itany.ems.service;

import com.itany.ems.entity.Emp;
import com.itany.ems.exception.DataAccessException;
import com.itany.ems.exception.RequestParameterErrorException;
import com.itany.ems.exception.ServiceException;

import java.util.List;

public interface EmpService {
    public void removeEmp(int id) throws ServiceException;

    public void modifyEmp();

    public void addEmp(String name,String salary,String gender,String edu,String[] hobbies);

    public List<Emp> findAll();

    public void Register(String name,String salary,String gender,String edu,String[] hobbies) throws DataAccessException, RequestParameterErrorException, ServiceException;
}
